package com.hxzy.module.admin.mapper;

import com.hxzy.module.admin.entity.AdminRoleInnerModule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 11452
* @description 针对表【admin_role_inner_module(总部角色模块关联表)】的数据库操作Mapper
* @createDate 2024-01-28 10:57:28
* @Entity com.hxzy.module.admin.entity.AdminRoleInnerModule
*/
public interface AdminRoleInnerModuleMapper extends BaseMapper<AdminRoleInnerModule> {

    /**
     * 根据角色id删除模块权限
     * @param roleId
     * @param merchantId
     * @return
     */
    Long deleteModuleByRoleId(@Param(value = "roleId") Long roleId,@Param(value = "merchantId") Long merchantId);


    /**
     * 根据角色id查询账号的个数
     * @param roleId
     * @param merchantId
     * @return
     */
    long existsAccountInnerRoleByRoleId(@Param(value = "roleId")Long roleId, @Param(value = "merchantId") Long merchantId);
}




